extends layout

block content
    link(rel='stylesheet' href='/stylesheets/tags.css')
    h1 电影分类
    div(class='container')
        div(class='tag-bar')
            span(style='font-weight:bold; background-color:#fb7299;color:#fff') 类别
            -
            each tag in jtags
                - 
                if tag.tag_id == selected
                    span(style='font-weight:bold; background-color:#fb7299;color:#fff')= tag.tag_name
                else
                    span 
                        a(href="/tags?tags="+tag.tag_id,class='tags-a')= tag.tag_name

        include film_lists.pug
    include navpage.pug